package cn.learn.infrastructure.persistent.dao;

import cn.learn.domain.strategy.model.entity.StrategyAwardEntity;
import cn.learn.infrastructure.persistent.po.Award;
import cn.learn.infrastructure.persistent.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Sun
 * @Desc 抽奖策略奖品明细配置  -概率、规则Dao
 * @date 2024-10-23-15:33
 */

@Mapper
public interface IStrategyAwardDao {

    List<StrategyAward> queryStrategyAwardList();

    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    String queryStrategyAwardRuleModels(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    StrategyAward queryStrategyAward(StrategyAward strategyAwardReq);
}
